<?php
    apf_require_class("PageHelper");
    $img_path = '/img/home/';
    ?>

<div class="header">
    <div class="bg_top"></div>
    <div class="logo"></div>
</div>

<div class="container">
<?php
switch ($params['step']) {
    case 1:
?>
<?php if(empty($data['msg'])) {?>
<form id="form1" action="" method="post" style="width: 837px;">
    <input type="hidden" name="step" value="1"/>
    <b style="font-size:24px;">第一步：生成系统密码</b>&nbsp;&nbsp;<input type="submit" value="确认"/>
</form>
<?php }else {
    ?>
    <h1 style="text-align:center"><?=$data['msg']?></h1>
    <br/>
    <h3 style="font-size:12px">请打印保存！[Ctrl+P]</h3>
    <?
}?>

<?php
    break;
case 2:
?>
<h1>第二步：创建系统密文</h1>
<?php if(empty($data['msg'])) {?>
<form id="form1" action="" method="post" style="width: 837px;">
    <input type="hidden" name="step" value="2"/>
    系统密码：<input name="systemcode" style="margin-left: 10px;margin-right:10px;margin-top: 20px;" type="text" placeholder="请输入系统密码"/>
    个人安全密码：<input name="perponcode" style="margin-left: 10px;margin-top: 20px;" type="password" placeholder="请输入个人安全密码"/>
    <input type="submit" value="确认"/> <span style="color:red">*.请牢记个人安全密码</span>
</form>
<?php }?>
<?php if(!empty($data['error'])) {?>
<div style="color:red"><?=$data['error']?></div>
<?php }else {
?>
<h1 style="text-align:center"><?=$data['msg']?></h1>
<?
}?>
<?php
    break;
}
?>
</div>
